/////////////////////////////////////////////////////////////////////////////
// Name:        statusbarMetre.h
// Purpose:     
// Author:      Stephen Whittle
// Modified by: 
// Created:     09/08/2009 00:31:55
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _STATUSBARMetre_H_
#define _STATUSBARMetre_H_


/*!
 * Includes
 */

////@begin includes
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
class statusBarMetre;
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_BARPANEL wxID_ANY
#define SYMBOL_STATUSBARMetre_STYLE wxSUNKEN_BORDER|wxTAB_TRAVERSAL
#define SYMBOL_STATUSBARMetre_IDNAME wxID_ANY
#define SYMBOL_STATUSBARMetre_SIZE wxDefaultSize
#define SYMBOL_STATUSBARMetre_POSITION wxDefaultPosition
////@end control identifiers


/*!
 * statusBarMetre class declaration
 */

class statusBarMetre: public wxWindow
{    
    DECLARE_DYNAMIC_CLASS( statusBarMetre )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    statusBarMetre();
    statusBarMetre(wxWindow* parent, wxWindowID id = ID_BARPANEL, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSUNKEN_BORDER|wxTAB_TRAVERSAL);

    /// Creation
    bool Create(wxWindow* parent, wxWindowID id = ID_BARPANEL, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSUNKEN_BORDER|wxTAB_TRAVERSAL);

    /// Destructor
    ~statusBarMetre();

    /// Initialises member variables
    void Init();

    /// Creates the controls and sizers
    void CreateControls();

////@begin statusBarMetre event handler declarations

    /// wxEVT_PAINT event handler for ID_BARPANEL
    void OnPaint( wxPaintEvent& event );

////@end statusBarMetre event handler declarations

////@begin statusBarMetre member function declarations

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end statusBarMetre member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin statusBarMetre member variables
////@end statusBarMetre member variables
    float maxValue;
    float currentValue;
};

#endif
    // _STATUSBARMetre_H_
